package com.neusoft.crm.service.impl;

import com.neusoft.crm.mapper.ClientContributionMapper;
import com.neusoft.crm.po.*;
import com.neusoft.crm.service.IClientContributionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 统计报表服务实现类
 *
 * @author bingo
 */
@Service
public class ClientContributionServiceImpl implements IClientContributionService {

    @Autowired
    private ClientContributionMapper clientContributionMapper;

    @Override
    public List<ClientInfo> selectClientInfoByStatus(ClientInfo clientInfo) {
        return clientContributionMapper.selectClientInfoByStatus(clientInfo);
    }

    @Override
    public List<ClientInfo> selectClientInfoByTag(ClientInfo clientInfo) {
        return clientContributionMapper.selectClientInfoByTag(clientInfo);
    }

    @Override
    public List<ClientInfo> selectLossClientByTag(ClientInfo clientInfo) {
        return clientContributionMapper.selectLossClientByTag(clientInfo);
    }

    @Override
    public List<DataArea> selectAllAreaName() {
        return clientContributionMapper.selectAllAreaName();
    }

    @Override
    public List<DataClientLevel> selectAllLevelName() {
        return clientContributionMapper.selectAllLevelName();
    }

    @Override
    public List<ClientInfo> getClientAmount() {
        return clientContributionMapper.getClientAmount();
    }

    @Override
    public List<DataServerType> getAllServerType() {
        return clientContributionMapper.getAllServerType();
    }

    @Override
    public List<ClientServer> getAllClientServer() {
        return clientContributionMapper.getAllClientServer();
    }

    @Override
    public List<SysUser> getAllClientManager() {
        return clientContributionMapper.getAllClientManager();
    }

}
